#ifndef _DevicesADC_H_
#define _DevicesADC_H_




#define ADC_SAMPLE_BATTERY_CHARGING_CURRENT ADC_CHANNEL_0
#define ADC_SAMPLE_BATTERY_VOLTAGE          ADC_CHANNEL_1
#define ADC_SAMPLE_WHEEL_LEFT_CURRENT       ADC_CHANNEL_2
#define ADC_SAMPLE_WHEEL_RIGHT_CURRENT      ADC_CHANNEL_5
#define ADC_SAMPLE_BRUSH_SIDE_CURRENT       ADC_CHANNEL_3
#define ADC_SAMPLE_BRUSH_MIDDLE_CURRENT     ADC_CHANNEL_4

#define ADC_CHANNEL_BATTERY_CHARGING_CURRENT    0
#define ADC_CHANNEL_BATTERY_VOLTAGE             1
#define ADC_CHANNEL_WHEEL_LEFT_CURRENT          2
#define ADC_CHANNEL_WHEEL_RIGHT_CURRENT         3
#define ADC_CHANNEL_BRUSH_SIDE_CURRENT          4
#define ADC_CHANNEL_BRUSH_MIDDLE_CURRENT        5


/* 采样扫描通道数量 */
#define ADC1_SAMPLING_CHANNEL   6
/* 每通道采样次数 */
#define ADC1_SAMPLING_NUMBER    8
/* 采样时间 */
#define ADC_SAMPLE_TIME ADC_SAMPLETIME_27POINT5





void vADCInit(void);
void vADCDMAInit(void);
float fADCGetDMAValue(uint8_t ucChannel);
float fADCGetChannelValue(uint8_t channel, uint32_t uiCnt);

#endif
